From: Carlos Garnacho Date: Wed, 8 Oct 2025 17:58:40 +0000 (+0200) Subject: ibusCandidatePopup: Use click gesture to activate candidates X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~44^2~119 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a5265e89475eb34c73d19cec030dd7a12090fef4;p=gnome-shell.git ibusCandidatePopup: Use click gesture to activate candidates Part-of: --- diff --git a/js/ui/ibusCandidatePopup.js b/js/ui/ibusCandidatePopup.js index 2b0d4c27c..eb185625f 100644 --- a/js/ui/ibusCandidatePopup.js +++ b/js/ui/ibusCandidatePopup.js @@ -48,10 +48,12 @@ const CandidateArea = GObject.registerClass({ this.add_child(box); const j = i; - box.connect('button-release-event', (actor, event) => { - this.emit('candidate-clicked', j, event.get_button(), event.get_state()); - return Clutter.EVENT_PROPAGATE; + const clickGesture = new Clutter.ClickGesture(); + clickGesture.connect('recognize', gesture => { + this.emit('candidate-clicked', j, gesture.get_button(), + gesture.get_state()); }); + box.add_action(clickGesture); } this._buttonBox = new St.BoxLayout({style_class: 'candidate-page-button-box'});